/* 首页整体样式 */
.home-container {
    background-color: #F5F0EB;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238d6e63' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    height: 100vh;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    padding-bottom: 60px;
    overflow-y: auto;
    color: #333;
}

/* 顶部导航栏样式 */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    background-color: #FFFFFF;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.top-nav.scrolled {
    background-color: rgba(245, 240, 235, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.top-nav h1 {
    font-size: 18px;
    font-weight: 600;
    color: #8b4513;
    margin: 0;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-btn,
.message-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: rgba(139, 69, 19, 0.1);
    color: #8b4513;
    border: none;
}

/* 轮播图样式优化（已居中，保持不变） */
.banner-wrapper {
    padding: 0 16px 16px;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1);
}

.banner-item.active {
    transform: scale(1.02);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #8b4513;
    font-weight: 600;
    border: none;
}

.banner-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text h2 {
    font-size: 20px;
    margin: 0 0 8px 0;
    font-weight: 600;
    animation: fadeInUp 0.5s;
}

.banner-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    animation: fadeInUp 0.5s 0.2s forwards;
    opacity: 0;
}

/* 轮播指示器样式优化（已居中，保持不变） */
.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.banner-indicators span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.banner-indicators span.active {
    background-color: #fff;
    width: 24px;
    border-radius: 4px;
}

/* 功能入口样式优化（已居中，保持不变） */
.section-container {
    padding: 0 16px 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-top: 8px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #5d4037;
    margin: 0;
    position: relative;
    padding-left: 8px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: #8b4513;
    border-radius: 3px;
}

.more-btn {
    color: #8d6e63;
    background-color: transparent;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 4px;
}

.adm-card {
    padding: 0;
}

.more-btn::after {
    font-size: 12px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 12px;
    background-color: transparent;
    box-shadow: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.feature-item:active {
    transform: scale(0.95);
    background-color: rgba(139, 69, 19, 0.05);
}

.feature-icon-container {
    position: relative;
}

.feature-icon {
    font-size: 26px;
    color: #8b4513;
    background-color: rgba(139, 69, 19, 0.1);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-item:active .feature-icon {
    background-color: rgba(139, 69, 19, 0.2);
}

.feature-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #f5a623;
    color: white;
    border: none;
    font-size: 12px;
    height: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 推荐项目样式优化（图片已居中，保持不变） */
.projects-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 69, 19, 0.2) transparent;
}

.projects-list::-webkit-scrollbar {
    height: 4px;
}

.projects-list::-webkit-scrollbar-thumb {
    background-color: rgba(139, 69, 19, 0.2);
    border-radius: 4px;
}

.project-card {
    min-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-img-container {
    position: relative;
    height: 180px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    transition: transform 0.5s ease;
}

.project-card:active .project-img {
    transform: scale(0.98);
}

.project-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.project-tag.热门 {
    background-color: #f5a623;
    color: #fff;
}

.project-tag.新品 {
    background-color: #2196f3;
    color: #fff;
}

.project-tag.特惠 {
    background-color: #ff4d4f;
    color: #fff;
}

.collect-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #ff4d4f;
    font-size: 16px;
    transition: all 0.3s ease;
}

.collect-btn:active {
    transform: scale(0.9);
    background-color: #fff;
}

.project-sales {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}

.project-info {
    padding: 16px;
}

.project-title {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.4;
}

.project-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.project-price {
    font-size: 18px;
    font-weight: 600;
    color: #8b4513;
}

.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    display: flex;
    align-items: center;
}

.project-duration {
    font-size: 12px;
    color: #666;
    margin-left: auto;
    background-color: #f5f0eb;
    padding: 2px 8px;
    border-radius: 12px;
}

.book-btn {
    width: 100%;
    background-color: #8b4513;
    color: #fff;
    border-color: transparent;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 15px;
   text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.book-btn:active {
    background-color: #6d380e;
    transform: scale(0.98);
}
/* 暂无推荐项目 - 空状态样式 */
.no-data {
  /* 容器布局：垂直居中 + 水平居中 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* 高度：适配项目列表区域，避免页面塌陷 */
  height: 300px;
  width: 100vw;
  /* 背景：柔和底色，提升层次感 */
  background-color: #f9f6f0; /* 浅米色调，贴合中医养生风格 */
  border-radius: 12px; /* 圆角：弱化生硬感 */
  padding: 30px 20px;
  box-sizing: border-box;
}

/* 空状态图标样式 */
.no-data-icon {
  /* 图标大小与颜色 */
  font-size: 48px;
  color: #c8a985; /* 浅棕色：呼应中医理疗的自然色调 */
  /* 间距：与文字保持距离 */
  margin-bottom: 16px;
  /* 轻微动画：hover时放大，提升交互感 */
  transition: transform 0.3s ease;
}

.no-data:hover .no-data-icon {
  transform: scale(1.05);
}

/* 空状态文字样式 */
.no-data p {
  /* 文字大小与颜色 */
  font-size: 16px;
  color: #8b7355; /* 深棕色：确保文字清晰且不刺眼 */
  /* 文字间距：提升可读性 */
  letter-spacing: 0.5px;
  /* 文本对齐：居中 */
  text-align: center;
  margin: 0;
}

/* 适配移动端：小屏幕下调整尺寸 */
@media (max-width: 768px) {
  .no-data {
    min-height: 220px;
    padding: 20px 15px;
  }

  .no-data-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .no-data p {
    font-size: 14px;
  }
}


.adm-card-body {
    padding: 0;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持图片比例，填充容器（不会拉伸） */
}

.doctor-info {
    padding: 10px 0;
    text-align: center;
}

.doctor-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.doctor-title {
    font-size: 12px;
    color: #666;
    margin: 0 0 6px 0;
}

.doctor-rating .adm-rate-star {
    font-size: 14px;
}



/* 悬浮预约按钮：确保内部内容居中 */
.floating-book-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #8b4513;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    z-index: 90;
    transition: all 0.3s ease;
    text-align: center;
    /* 防止文字偏移 */
}

.floating-book-btn::before {
    font-size: 20px;
}

.floating-book-btn:active {
    transform: scale(0.95);
    background-color: #6d380e;
}

/* 动画效果：保持不变 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 统一标签样式：保持不变 */
.adm-tag {
    border: none;
}

/* 养生知识文章模块样式 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.article-card {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.article-card:active {
    transform: translateY(2px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.article-content {
    display: flex;
    padding: 12px;
    gap: 12px;
}

.article-img-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:active.article-img {
    transform: scale(0.95);
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-category-tag {
    background-color: rgba(139, 69, 19, 0.1);
    color: #8b4513;
    font-size: 11px;
    width: 56px;
    padding: 2px 6px;
    margin-bottom: 6px;
}

.article-title {
    font-size: 15px;
    font-weight: 600;
        color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item svg {
    vertical-align: middle;
}